<template>
	<view class="cu-page">
	    <nav-bar title="精选壁纸"></nav-bar>
	    <wallpaper-list :list="list"></wallpaper-list>
	    <cu-end-empty></cu-end-empty>
	</view>
</template>

<script>
	import navBar from '../../components/nav-bar/nav-bar.vue'
	import wallpaperList from '../../components/wallpaper-list/wallpaper-list.vue'
	export default {
		data() {
			return {
				query: {
					page: 0,	
					size: 30
				},
				list: []
			}
		},
		methods:{
			getList:function(){
				uni.request({
				    url: this.$globals.siteUrl+'/ckgd.php', //仅为示例，并非真实接口地址。
				    success: (res) => {
						console.log("request success");
						console.log(res.data);
						var resData = res.data
						if(resData.success && resData.data.code == 200){
							this.list = resData.data.data
						}
						console.log(this.list,'this.list');
				    }
				});
			}
		},
		onLoad:function(){
			this.getList()
		},
		components:{
			navBar,wallpaperList
		},
	}
</script>

<style>
</style>
